.blgcomment-list > li:nth-child(n + 2) {
    margin-block-start: 15px !important;
}
.custom-card {
    border: 1px solid #ced4da;
}
.customizer-action svg {
    width: 23px !important;
    color: #ffffff !important;
}
.active-mode {
    border: solid 2px #000000 !important;
}
.property-img {
    max-width: 507px;
    max-height: 286px;
}
.text-justify {
    text-align: justify;
}
.custom .media {
    padding: 10px !important;
}
.user-avatar {
    width: 30px;
    height: 30px;
}
@media only screen and (max-width: 410px) {
    .header_li {
        display: none !important;
    }
}
.blgcomment-list li .media img {
    width: auto;
    height: 40px !important;
}

#card-element {
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px !important;
    padding: 13px !important;
}
.codex-sidebar .logo-gridwrap {
    padding: 0px 16px !important;
}

.setting-logo {
    width: 300px !important;
}

.landing-logo {
    width: 180px !important;
}
.lan-footer .codex-brand {
    margin-block-end: 0px !important;
}
.email-sidebar ul.custom-sidebarmenu-list {
    margin-block-start: 0px;
}
.invoice-logo {
    width: 250px;
}

.codex-calendar .events-list li {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    color: #fff;
    line-height: 1;
}
.codex-calendar .events-list {
    overflow: auto;
    height: 863px;
}
.landing_logo {
    filter: drop-shadow(2px 3px 7px #011c4b);
}
.head-invoice img {
    width: 250px;
}
.cdx-invoice .body-invoice .table tr td {
    padding: 10px 10px !important;
}

.codex-brand img {
    width: 300px;
}
.codex-authbox .auth-header .codex-brand {
    margin-block-end: 0px;
}

.intro {
    background-repeat: no-repeat;
    background-size: cover;
}

.landing_dash {
    position: absolute;
    right: 0px;
    top: 50%;
    left: auto;
    bottom: 0;
    transform: translateY(-50%);
    overflow: hidden;
    height: 585px;
    display: flex;
    align-items: center;
    width: 60%;
}

.landing_dash img {
    object-fit: cover;
    position: relative;
    right: -220px;
    border-radius: 10px;
    left: auto;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 1440px) {
    .landing_dash {
        display: none;
    }
}

.lan-footer {
    text-align: center;
    background-color: unset;
}
.lan-footer .support-contain p {
    color: #051722;
    font-size: calc(16px + 4 * (100vw - 420px) / 1500);
}
.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}
.select2-container .select2-selection--multiple {
    min-height: 43px !important;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e5e5e5;
}

/* CUSTOM SELECT2 DARKMODE STYLES */
.darkmode .select2-selection {
    border-color: #ffffff1a;
}

.darkmode .select2-selection,
.darkmode .select2-results__options {
    background-color: #22242b !important;
}

.darkmode .select2-results__option[aria-selected="true"] {
    background-color: white !important;
    color: #22242b !important;
}

/* Dark mode styles for the select dropdown */
.darkmode select {
    background-color: #22242b !important; /* Dark background */
    color: white !important; /* White text */
    border: 1px solid #ffffff1a !important; /* Light border */
}

.darkmode select:focus {
    outline: none;
    border-color: white !important;
}

.darkmode option {
    background-color: #22242b !important;
    color: white !important;
}

.sidebar-dark .logo-gridwrap .codexbrand-logo,
.sidebar-dark .logo-gridwrap .codex-darklogo {
    height: 150px;
    width: 150px;
    margin: 0 auto;
}

.sidebar-dark .logo-gridwrap .sidebar-action svg {
    color: white;
}

.sidebar-light .logo-gridwrap .codexbrand-logo,
.sidebar-light .logo-gridwrap .codex-darklogo {
    height: 150px;
    width: 150px;
    margin: 0 auto;
}
.submenu-list .menu-item.active a {
    color: white !important;
}

.user-action p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
}

/* Apply to all table cells */
table.dataTable {
    width: 100%;
    table-layout: auto;
}

table.dataTable th,
table.dataTable td {
    vertical-align: middle;
    text-align: left;
    padding: 10px;
    white-space: normal;
    word-break: break-word;
}

table.dataTable th.text-right,
table.dataTable td.text-right {
    text-align: left;
}

table.dataTable th.action-column,
table.dataTable td.action-column {
    white-space: nowrap;
    width: 130px;
    min-width: 100px;
    max-width: 150px;
    text-align: left;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: auto;
    margin: 0;
}

/* Print media queries */
@media print {
    @page {
        size: A4;
        margin: 0.25in 0.5in;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide UI elements */
    .breadcrumb,
    .card-action-btn,
    .btn,
    .customModal,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .dt-buttons,
    .codex-loader,
    .header,
    .sidebar,
    .themebody-wrap > .codex-breadcrumb {
        display: none !important;
    }

    /* Hide action columns */
    th.text-right,
    td.text-right,
    .cart-action,
    .d-flex,
    .justify-content-center,
    .gap-3,
    .align-items-center,
    .btn-sm,
    .btn-outline-danger,
    .btn-outline-success,
    .btn-outline-warning,
    .btn-outline-info,
    form,
    button[type="submit"],
    i[data-feather],
    .text-success,
    .customModal,
    .d-inline,
    td:has(.cart-action),
    td:has(.d-flex),
    td:has(form),
    td:has(button),
    td:has(.btn),
    td:has(.customModal),
    td:has(.form-check),
    td:has(.form-switch),
    td:has(.lease-status-toggle),
    td:has(.form-check-input) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    /* Layout reset */
    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-body {
        padding: 0 !important;
    }

    /* Table base styles */
    table.dataTable {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 8px !important;
        table-layout: fixed !important;
        border-spacing: 0 !important;
    }

    table.dataTable th,
    table.dataTable td {
        max-width: 80px !important;
    }

    /* Column widths - generic */
    table.dataTable th:nth-child(1),
    table.dataTable td:nth-child(1) {
        width: 4% !important;
        max-width: 30px !important;
    }

    table.dataTable th:nth-child(2),
    table.dataTable td:nth-child(2) {
        width: 10% !important;
        max-width: 80px !important;
    }

    table.dataTable th:nth-child(3),
    table.dataTable td:nth-child(3) {
        width: 8% !important;
        max-width: 70px !important;
    }

    table.dataTable th:nth-child(4),
    table.dataTable td:nth-child(4) {
        width: 8% !important;
        max-width: 70px !important;
    }

    table.dataTable th:nth-child(5),
    table.dataTable td:nth-child(5) {
        width: 8% !important;
        max-width: 70px !important;
    }

    /* Row height control */
    table.dataTable tr {
        height: auto !important;
        min-height: 15px !important;
        max-height: 25px !important;
        line-height: 1 !important;
    }

    table.dataTable thead th {
        background-color: #f8f9fa !important;
        border: 1px solid #000 !important;
        padding: 1px 1px !important;
        font-weight: bold !important;
        text-align: center !important;
        font-size: 7px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        height: auto !important;
        min-height: 12px !important;
        max-height: 18px !important;
        line-height: 1 !important;
    }

    table.dataTable tbody td {
        border: 1px solid #000 !important;
        padding: 1px 1px !important;
        text-align: left !important;
        font-size: 6px !important;
        line-height: 1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        word-break: break-word !important;
        hyphens: auto !important;
        vertical-align: top !important;
        height: auto !important;
        min-height: 12px !important;
        max-height: 18px !important;
    }

    /* Complex content handling */
    table.dataTable tbody td:contains("number_format"),
    table.dataTable tbody td:contains("+"),
    table.dataTable tbody td:contains("*"),
    table.dataTable tbody td:contains("-") {
        font-size: 5px !important;
        line-height: 1 !important;
        padding: 1px 1px !important;
        max-height: 16px !important;
    }

    /* Badge styles */
    .badge {
        border: 1px solid #000 !important;
        color: #000 !important;
        background-color: #f8f9fa !important;
        padding: 1px 3px !important;
        margin: 0 !important;
        font-size: 6px !important;
        line-height: 1 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 14px !important;
    }

    .theme-body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .custom-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Print table specific */
    .print-table {
        width: 100% !important;
        font-size: 8px !important;
        table-layout: fixed !important;
    }

    .print-table th,
    .print-table td {
        padding: 1px 2px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        line-height: 1 !important;
        vertical-align: top !important;
        height: auto !important;
        min-height: 12px !important;
        max-height: 20px !important;
    }

    /* Lease table column widths */
    .print-table th:nth-child(1),
    .print-table td:nth-child(1) {
        width: 3% !important;
        min-width: 20px !important;
        max-width: 25px !important;
    }
    .print-table th:nth-child(2),
    .print-table td:nth-child(2) {
        width: 8% !important;
        min-width: 60px !important;
        max-width: 80px !important;
    }
    .print-table th:nth-child(3),
    .print-table td:nth-child(3) {
        width: 8% !important;
        min-width: 60px !important;
        max-width: 80px !important;
    }
    .print-table th:nth-child(4),
    .print-table td:nth-child(4) {
        width: 8% !important;
        min-width: 60px !important;
        max-width: 80px !important;
    }
    .print-table th:nth-child(5),
    .print-table td:nth-child(5) {
        width: 6% !important;
        min-width: 40px !important;
        max-width: 50px !important;
    }
    .print-table th:nth-child(6),
    .print-table td:nth-child(6) {
        width: 6% !important;
        min-width: 40px !important;
        max-width: 50px !important;
    }
    .print-table th:nth-child(7),
    .print-table td:nth-child(7) {
        width: 7% !important;
        min-width: 50px !important;
        max-width: 60px !important;
    }
    .print-table th:nth-child(8),
    .print-table td:nth-child(8) {
        width: 7% !important;
        min-width: 50px !important;
        max-width: 60px !important;
    }
    .print-table th:nth-child(9),
    .print-table td:nth-child(9) {
        width: 9% !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    .print-table th:nth-child(10),
    .print-table td:nth-child(10) {
        width: 7% !important;
        min-width: 50px !important;
        max-width: 60px !important;
    }
    .print-table th:nth-child(11),
    .print-table td:nth-child(11) {
        width: 8% !important;
        min-width: 60px !important;
        max-width: 80px !important;
    }
    .print-table th:nth-child(12),
    .print-table td:nth-child(12) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(13),
    .print-table td:nth-child(13) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(14),
    .print-table td:nth-child(14) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(15),
    .print-table td:nth-child(15) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(16),
    .print-table td:nth-child(16) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(17),
    .print-table td:nth-child(17) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(18),
    .print-table td:nth-child(18) {
        width: 6% !important;
        min-width: 45px !important;
        max-width: 55px !important;
    }
    .print-table th:nth-child(19),
    .print-table td:nth-child(19) {
        width: 5% !important;
        min-width: 35px !important;
        max-width: 45px !important;
    }

    .print-table {
        max-width: 100% !important;
        overflow: visible !important;
    }

    .print-table tr {
        page-break-inside: avoid !important;
        height: auto !important;
        min-height: 15px !important;
        max-height: 25px !important;
    }

    .print-table td,
    .print-table th {
        max-width: 150px !important;
        overflow: visible !important;
    }

    /* Hide last column (actions) */
    .datatbl-advance-sort-desc th:last-child,
    .datatbl-advance-sort-desc td:last-child,
    table.dataTable th:last-child,
    table.dataTable td:last-child {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Form controls */
    .form-check,
    .form-switch,
    .form-check-input,
    .lease-status-toggle {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
    }

    /* Export text visibility */
    .export-only {
        display: inline !important;
        font-size: 7px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide misc elements */
    .d-none,
    .confirm_dialog,
    .text-warning,
    .text-danger,
    .text-success {
        display: none !important;
    }

    /* Compact row heights */
    .datatbl-advance-sort-desc tr,
    .datatbl-advance-sort-desc td,
    .datatbl-advance-sort-desc th {
        height: auto !important;
        min-height: 12px !important;
        max-height: 18px !important;
        line-height: 1 !important;
        padding: 1px 1px !important;
        vertical-align: top !important;
    }

    /* Lease table specific content */
    .datatbl-advance-sort-desc td {
        font-size: 6px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Active column styling */
    td:has(.form-check),
    td:has(.form-switch),
    td:has(.lease-status-toggle) {
        padding: 1px 1px !important;
        height: 12px !important;
        line-height: 1 !important;
    }

    td .form-check,
    td .form-switch,
    td .lease-status-toggle {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    td .export-only {
        display: inline !important;
        font-size: 6px !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Numeric columns compact styling */
    .datatbl-advance-sort-desc td:nth-child(10),
    .datatbl-advance-sort-desc td:nth-child(11),
    .datatbl-advance-sort-desc td:nth-child(12),
    .datatbl-advance-sort-desc td:nth-child(13),
    .datatbl-advance-sort-desc td:nth-child(14),
    .datatbl-advance-sort-desc td:nth-child(15),
    .datatbl-advance-sort-desc td:nth-child(16),
    .datatbl-advance-sort-desc td:nth-child(17),
    .datatbl-advance-sort-desc td:nth-child(18),
    .datatbl-advance-sort-desc td:nth-child(19) {
        font-size: 5px !important;
        padding: 1px 1px !important;
        max-height: 16px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: auto !important;
        max-width: 60px !important;
    }
}
